# @Time : 2020/6/28 17:30
# @Author : Fioman 
# @Phone : 13149920693

class SuperBus(object):
    def __init__(self, passengers=None):
        if passengers is None:
            self.passengers = []
        else:
            self.passengers = list(passengers)  # passengers的副本

    def pick(self, name):
        self.passengers.append(name)

    def drop(self, name):
        self.passengers.remove(name)

if __name__ == '__main__':
    basketball_team = ['Sue', 'Tina', 'Maya', 'Diana', 'Pat']
    bus = SuperBus(basketball_team)
    bus.drop("Tina")
    bus.drop("Pat")
    print("basketball_team = {}".format(basketball_team))  # 这样就可以搞定了.
